﻿using System.ComponentModel;

namespace SYH.Comp.AppEnum
{
    public class CommonEnum
    {
        #region
        public enum CodeType
        {
            Tq,
            Statistics,
            BaiDu
        }


        /// <summary>
        /// 日期格式
        /// </summary>
        public enum DateFormat
        {
            Year,
            Month,
            Day
        }
        /// <summary>
        /// 地区级别
        /// </summary>
        public enum District
        {
            Province,
            City,
            Area
        }

        /// <summary>
        /// 文件类型
        /// </summary>
        public enum FileType
        {
            Image,
            File,
            CssFile,
            HtmlFile
        }

        /// <summary>
        /// 会员文件类别
        /// </summary>
        public enum MemberFileCate
        {
            Other = 0,
            Product = 1,
            Article = 2,
            WebSet = 3,
            Oppotrunity = 4,
            Exhibition = 5
        }
        /// <summary>
        /// 主站文件类别
        /// </summary>
        public enum ManagerFileCate
        {
            Member = 0,
            Product = 1,
            Article = 2,
            Other = 3
        }
        ///// <summary>
        ///// 主站文件类别
        ///// </summary>
        //public enum WebSite
        //{
        //    /// <summary>
        //    /// 主站
        //    /// </summary>
        //    [Description("主站")]
        //    MainSite = 0,
        //    MemberSite = 1,
        //    IndustrySite = 2
        //}
        /// <summary>
        /// 上传文件站点
        /// </summary>
        public enum WebFileSite
        {
            /// <summary>
            /// 主站（web文件夹）
            /// </summary>
            [Description("主站")]
            MainSite = 0,
            ///// <summary>
            ///// 暂排除
            ///// </summary>
            //[Description("")]
            //MemberSite = 1,
            /// <summary>
            /// 供求站文件（trade文件夹）
            /// </summary>
            [Description("供求站")]
            Trade = 2
        }
        /// <summary>
        /// 主站与行业站
        /// </summary>
        public enum WebIndustrySite
        {
            /// <summary>
            /// 主站
            /// </summary>
            [Description("主站")]
            MainSite = 0,
            /// <summary>
            /// 花木站
            /// </summary>
            [Description("花木站")]
            HuaMu = 1,
            /// <summary>
            /// 游乐站
            /// </summary>
            [Description("游乐站")]
            YouLe = 2
        }
        #endregion

        #region
        /// <summary>
        /// 会员版本短信数
        /// </summary>
        public enum MemberVersionSms
        {
            ///// <summary>
            ///// 基础版(普通会员)
            ///// </summary>
            //[Description("普通会员")]
            //Common = 0,
            /// <summary>
            /// 标准版(高级会员)短信数
            /// </summary>
            [Description("黄金会员短信")]
            AdvancedSms = 20,
            /// <summary>
            /// 专业版(黄金会员)短信数
            /// </summary>
            [Description("白金会员短信")]
            GoldSms = 100,
            /// <summary>
            /// 定制版(钻石会员)短信数
            /// </summary>
            [Description("钻石会员短信")]
            DiamondSms = 200
        }
        /// <summary>
        /// 会员收费
        /// </summary>
        public enum MemberFee
        {
            /// <summary>
            /// 标准价
            /// </summary>
            [Description("标准价")]
            Default = 0,
            ///// <summary>
            ///// 百度套餐价
            ///// </summary>
            //[Description("百度套餐价")]
            //BaiDu = 1,
            /// <summary>
            /// 会议套餐价
            /// </summary>
            [Description("会议套餐价")]
            Meeting = 2
        }
        /// <summary>
        /// 会员收费类别
        /// </summary>
        public enum MemberFeeType
        {
            /// <summary>
            /// 黄金版标准价
            /// </summary>
            [Description("黄金版标准价")]
            AdvancedDefault = 11,
            /// <summary>
            /// 黄金版百度套餐价
            /// </summary>
            [Description("黄金版百度套餐价")]
            AdvancedBaiDu = 12,
            /// <summary>
            /// 黄金版会议套餐价
            /// </summary>
            [Description("黄金版会议套餐价")]
            AdvancedMeeting = 13,
            /// <summary>
            /// 白金版标准价
            /// </summary>
            [Description("白金版标准价")]
            GoldDefault = 21,
            /// <summary>
            /// 白金版百度套餐价
            /// </summary>
            [Description("白金版百度套餐价")]
            GoldBaiDu = 22,
            /// <summary>
            /// 白金版会议套餐价
            /// </summary>
            [Description("白金版会议套餐价")]
            GoldMeeting = 23,
            /// <summary>
            /// 钻石版标准价
            /// </summary>
            [Description("钻石版标准价")]
            DiamondDefault = 31,
            /// <summary>
            /// 钻石版百度套餐价
            /// </summary>
            [Description("钻石版百度套餐价")]
            DiamondBaiDu = 32,
            /// <summary>
            /// 钻石版会议套餐价
            /// </summary>
            [Description("钻石版会议套餐价")]
            DiamondMeeting = 33
        }
        /// <summary>
        /// 套餐费用
        /// </summary>
        public enum MemberFeeMoney
        {
            /// <summary>
            /// 黄金版标准价
            /// </summary>
            [Description("黄金版标准价")]
            AdvancedDefault = 1680,
            /// <summary>
            /// 黄金版百度套餐价
            /// </summary>
            [Description("黄金版百度套餐价")]
            AdvancedBaiDu = 900,
            /// <summary>
            /// 黄金版会议套餐价
            /// </summary>
            [Description("黄金版会议套餐价")]
            AdvancedMeeting = 1000,// 600,
            /// <summary>
            /// 白金版标准价
            /// </summary>
            [Description("白金版标准价")]
            GoldDefault = 3680,
            /// <summary>
            /// 白金版百度套餐价
            /// </summary>
            [Description("白金版百度套餐价")]
            GoldBaiDu = 1500,
            /// <summary>
            /// 白金版会议套餐价
            /// </summary>
            [Description("白金版会议套餐价")]
            GoldMeeting = 2200,// 1200,
            /// <summary>
            /// 钻石版标准价
            /// </summary>
            [Description("钻石版标准价")]
            DiamondDefault = 5680,
            /// <summary>
            /// 钻石版百度套餐价
            /// </summary>
            [Description("钻石版百度套餐价")]
            DiamondBaiDu = 5680,
            /// <summary>
            /// 钻石版会议套餐价
            /// </summary>
            [Description("钻石版会议套餐价")]
            DiamondMeeting = 5680
        }

        #endregion

        #region 会员版本
        public enum MemberVersion
        {
            /// <summary>
            /// 基础版(普通会员)
            /// </summary>
            [Description("普通会员")]
            Common = 0,
            /// <summary>
            /// 标准版(高级会员)
            /// </summary>
            [Description("黄金会员")]
            Advanced = 1,
            /// <summary>
            /// 专业版(黄金会员)
            /// </summary>
            [Description("白金会员")]
            Gold = 2,
            /// <summary>
            /// 定制版(钻石会员)
            /// </summary>
            [Description("钻石会员")]
            Diamond = 3

        }
        /// <summary>
        /// 会员版本   //暂添加此枚举 添加百度版会员  防止普通注册时候显示此 2012.2.2 lzy
        /// </summary>
        public enum MemberVersionAll
        {
            /// <summary>
            /// 基础版(普通会员)
            /// </summary>
            [Description("普通会员")]
            Common = 0,
            /// <summary>
            /// 标准版(高级会员)
            /// </summary>
            [Description("黄金会员")]
            Advanced = 1,
            /// <summary>
            /// 专业版(黄金会员)
            /// </summary>
            [Description("白金会员")]
            Gold = 2,
            /// <summary>
            /// 定制版(钻石会员)
            /// </summary>
            [Description("钻石会员")]
            Diamond = 3,
            /// <summary>
            /// 百度版会员
            /// </summary>
            [Description("百度版会员")]
            Baidu = 4
        }
        #endregion

        #region 会员模板功能  MemberFunctions  对应 Template表 Functions 字段
        /// <summary>
        /// 会员模板功能  对应 Template表 Functions 字段
        /// </summary>
        public enum MemberFunctions
        {
            /// <summary>
            /// 基础版，无模板。
            /// </summary>
            [Description("基础会员")]
            Base = -1,
            /// <summary>
            /// 原标准版 （0-100）
            /// </summary>
            [Description("原标准版")]
            Standard = 0,
            /// <summary>
            /// 原专业版 （100-200）
            /// </summary>
            [Description("原专业版")]
            Professional = 1,
            /// <summary>
            /// 新白金版 （200+）
            /// </summary>
            [Description("新白金版")]
            Platinum = 2,
            /// <summary>
            /// 定制版，钻石会员，无指定 Template 模板。
            /// </summary>
            [Description("钻石会员")]
            Custom = 3,
            /// <summary>
            /// 百度版会员，Template 模板号：-1，-2，-3，-4，以上四种。
            /// </summary>
            [Description("百度版会员")]
            Baidu = 4
        }
        #endregion

        /// <summary>
        /// 获取会员版本名称
        /// </summary>
        /// <param name="strVersion">版本号</param>
        /// <returns></returns>
        public static string GetMemberVersion(string strVersion)
        {
            switch (strVersion)
            {
                case "0":
                    return "普通会员";
                case "1":
                    return "<font color='green'>黄金会员</font>";
                case "2":
                    return "<font color='red'>白金会员</font>";
                case "3":
                    return "<font color='blue'>钻石会员</font>";
                case "4":
                    return "<font color='blue'>百度版会员</font>";
                default:
                    return "无";
            }
        }

        #region 百度版本会员模板
        /// <summary>
        /// 百度版本会员模板
        /// </summary>
        public enum MemberTemplateBaidu
        {
            #region
            /// <summary>
            /// 黑色
            /// </summary>
            [Description("黑色")]
            Black = -1,
            /// <summary>
            /// 蓝色
            /// </summary>
            [Description("蓝色")]
            Blue = -2,
            /// <summary>
            /// 绿色
            /// </summary>
            [Description("绿色")]
            Green = -3,
            /// <summary>
            /// 红色
            /// </summary>
            [Description("红色")]
            Red = -4
            #endregion
        }
        #endregion

        #region 行业
        /// <summary>
        /// 公司一级行业
        /// </summary>
        [Description("公司一级行业")]
        public enum CompanyIndustryOne
        {
            #region  老版本
            /*
            /// <summary>
            /// 农林牧副
            /// </summary>
            [Description("农林牧副")]
            agriculture = 10024,
            /// <summary>
            /// 珠宝首饰
            /// </summary>
            [Description("珠宝首饰")]
            jewelry = 10026,
            /// <summary>
            /// 美妆日化
            /// </summary>
            [Description("美妆日化")]
            dailychemicals = 10027,
            /// <summary>
            /// 机械设备
            /// </summary>
            [Description("机械设备")]
            machinery = 10030,
            /// <summary>
            /// 化工原料
            /// </summary>
            [Description("化工原料")]
            chemical = 10037,
            /// <summary>
            /// 金属产品
            /// </summary>
            [Description("金属产品")]
            minerals = 10042,
            /// <summary>
            /// 交通运输
            /// </summary>
            [Description("交通运输")]
            transportation = 10046,
            /// <summary>
            /// 汽车用品
            /// </summary>
            [Description("汽车用品")]
            automotive = 10053,
            /// <summary>
            /// 电子元件
            /// </summary>
            [Description("电子元件")]
            eleccomponent = 10057,
            /// <summary>
            /// 家居百货
            /// </summary>
            [Description("家居百货")]
            homedepot = 10062,
            /// <summary>
            /// 数码产品
            /// </summary>
            [Description("数码产品")]
            digitalproducts = 10069,
            /// <summary>
            /// 旅游票务
            /// </summary>
            [Description("旅游票务")]
            travelling = 10073,
            /// <summary>
            /// 广告服务
            /// </summary>
            [Description("广告服务")]
            advertising = 10078,
            /// <summary>
            /// 服装鞋帽
            /// </summary>
            [Description("服装鞋帽")]
            wearing = 10082,
            /// <summary>
            /// 医药医械
            /// </summary>
            [Description("医药医械")]
            medicine = 10086,
            /// <summary>
            /// 建筑建材
            /// </summary>
            [Description("建筑建材")]
            JJG = 10089,
            /// <summary>
            /// 办公文教
            /// </summary>
            [Description("办公文教")]
            officesupplies = 10109,
            /// <summary>
            /// 电工电气
            /// </summary>
            [Description("电工电气")]
            electric = 10115,
            /// <summary>
            /// 玩具娱乐
            /// </summary>
            [Description("玩具娱乐")]
            toys = 10171,
            /// <summary>
            /// 包装印刷
            /// </summary>
            [Description("包装印刷")]
            packageprinting = 10182,
            /// <summary>
            /// 食品饮料
            /// </summary>
            [Description("食品饮料")]
            food = 10183,
            /// <summary>
            /// 运动健身
            /// </summary>
            [Description("运动健身")]
            sporting = 10208,
            /// <summary>
            /// 工艺礼品
            /// </summary>
            [Description("工艺礼品")]
            crafts = 10209,
            /// <summary>
            /// 家用电器
            /// </summary>
            [Description("家用电器")]
            homeappliances = 10210,
            /// <summary>
            /// 皮具箱包
            /// </summary>
            [Description("皮具箱包")]
            bags = 10211,
            /// <summary>
            /// 教育培训
            /// </summary>
            [Description("教育培训")]
            training = 10392,
            /// <summary>
            /// 五金灯具
            /// </summary>
            [Description("五金灯具")]
            hardware = 10395,
            /// <summary>
            /// 仪表仪器
            /// </summary>
            [Description("仪表仪器")]
            apparatus = 10396,
            /// <summary>
            /// 通信器材
            /// </summary>
            [Description("通信器材")]
            communications = 10397,
            /// <summary>
            /// 监控设备
            /// </summary>
            [Description("监控设备")]
            monitoring = 10398,
            /// <summary>
            /// 能源燃料
            /// </summary>
            [Description("能源燃料")]
            energy = 10399,
            /// <summary>
            /// 塑料橡胶
            /// </summary>
            [Description("塑料橡胶")]
            plasrubber = 10400,
            /// <summary>
            /// 纺织皮革
            /// </summary>
            [Description("纺织皮革")]
            textile = 10401,
            /// <summary>
            /// 金融保险
            /// </summary>
            [Description("金融保险")]
            finance = 10402,
            /// <summary>
            /// 货运报关
            /// </summary>
            [Description("货运报关")]
            freight = 10403,
            /// <summary>
            /// 租凭中介
            /// </summary>
            [Description("租凭中介")]
            agentlease = 10404,
            /// <summary>
            /// 婚丧礼仪
            /// </summary>
            [Description("婚丧礼仪")]
            ceremony = 10405,
            /// <summary>
            /// 生活必备
            /// </summary>
            [Description("生活必备")]
            homemaking = 10671,
            /// <summary>
            /// 保健康复
            /// </summary>
            [Description("保健康复")]
            recuperating = 10691,
            /// <summary>
            /// 汽摩附件
            /// </summary>
            [Description("汽摩附件")]
            autoaccessories = 10699,
            /// <summary>
            /// 防护设备
            /// </summary>
            [Description("防护设备")]
            shield = 10706,
            /// <summary>
            /// 宾馆酒店
            /// </summary>
            [Description("宾馆酒店")]
            Hotel = 10707,
            /// <summary>
            /// 其他行业
            /// </summary>
            [Description("其他行业")]
            Other = 10708
             */
            #endregion

            #region  新版本
            /// <summary>
            /// 农林牧副
            /// </summary>
            [Description("农林牧副")]
            农林牧副 = 10024,
            /// <summary>
            /// 机械设备
            /// </summary>
            [Description("机械设备")]
            机械设备 = 10030,
            /// <summary>
            /// 化工原料
            /// </summary>
            [Description("化工原料")]
            化工原料 = 10037,
            /// <summary>
            /// 交通运输
            /// </summary>
            [Description("交通运输")]
            交通运输 = 10046,
            /// <summary>
            /// 电子元件
            /// </summary>
            [Description("电子元件")]
            电子元件 = 10057,
            /// <summary>
            /// 家居百货
            /// </summary>
            [Description("家居百货")]
            家居百货 = 10062,
            /// <summary>
            /// IT数码
            /// </summary>
            [Description("IT数码")]
            IT数码 = 10069,
            /// <summary>
            /// 广告服务
            /// </summary>
            [Description("广告服务")]
            广告服务 = 10078,
            /// <summary>
            /// 服装鞋帽
            /// </summary>
            [Description("服装鞋帽")]
            服装鞋帽 = 10082,
            /// <summary>
            /// 医疗器械
            /// </summary>
            [Description("医疗器械")]
            医疗器械 = 10086,
            /// <summary>
            /// 建筑建材
            /// </summary>
            [Description("建筑建材")]
            建筑建材 = 10089,
            /// <summary>
            /// 办公文教
            /// </summary>
            [Description("办公文教")]
            办公文教 = 10109,
            /// <summary>
            /// 电工电气
            /// </summary>
            [Description("电工电气")]
            电工电气 = 10115,
            /// <summary>
            /// 玩具娱乐
            /// </summary>
            [Description("玩具娱乐")]
            玩具娱乐 = 10171,
            /// <summary>
            /// 包装印刷
            /// </summary>
            [Description("包装印刷")]
            包装印刷 = 10182,
            /// <summary>
            /// 食品饮料
            /// </summary>
            [Description("食品饮料")]
            食品饮料 = 10183,
            /// <summary>
            /// 运动健身
            /// </summary>
            [Description("运动健身")]
            运动健身 = 10208,
            /// <summary>
            /// 工艺礼品
            /// </summary>
            [Description("工艺礼品")]
            工艺礼品 = 10209,
            /// <summary>
            /// 家用电器
            /// </summary>
            [Description("家用电器")]
            家用电器 = 10210,
            /// <summary>
            /// 五金灯具
            /// </summary>
            [Description("五金灯具")]
            五金灯具 = 10395,
            /// <summary>
            /// 仪器仪表
            /// </summary>
            [Description("仪器仪表")]
            仪器仪表 = 10396,
            /// <summary>
            /// 通信传媒
            /// </summary>
            [Description("通信传媒")]
            通信传媒 = 10397,
            /// <summary>
            /// 安防监控
            /// </summary>
            [Description("安防监控")]
            安防监控 = 10398,
            /// <summary>
            /// 能源矿产
            /// </summary>
            [Description("能源矿产")]
            能源矿产 = 10399,
            /// <summary>
            /// 塑料橡胶
            /// </summary>
            [Description("塑料橡胶")]
            塑料橡胶 = 10400,
            /// <summary>
            /// 纺织皮革
            /// </summary>
            [Description("纺织皮革")]
            纺织皮革 = 10401,
            /// <summary>
            /// 婚庆礼仪
            /// </summary>
            [Description("婚庆礼仪")]
            婚庆礼仪 = 10405,
            /// <summary>
            /// 货运报关
            /// </summary>
            [Description("货运报关")]
            货运报关 = 11721,
            /// <summary>
            /// 教育培训
            /// </summary>
            [Description("教育培训")]
            教育培训 = 11722,
            /// <summary>
            /// 金融保险
            /// </summary>
            [Description("金融保险")]
            金融保险 = 11723,
            /// <summary>
            /// 旅游票务
            /// </summary>
            [Description("旅游票务")]
            旅游票务 = 11724,
            /// <summary>
            /// 公司服务
            /// </summary>
            [Description("公司服务")]
            公司服务 = 11725,
            /// <summary>
            /// 保健康复
            /// </summary>
            [Description("保健康复")]
            保健康复 = 11726,
            /// <summary>
            /// 宾馆酒店
            /// </summary>
            [Description("宾馆酒店")]
            宾馆酒店 = 11727,
            /// <summary>
            /// 生活必备
            /// </summary>
            [Description("生活必备")]
            生活必备 = 11728,
            /// <summary>
            /// 租赁中介
            /// </summary>
            [Description("租赁中介")]
            租赁中介 = 11729,
            /// <summary>
            /// 汽车工业
            /// </summary>
            [Description("汽车工业")]
            汽车工业 = 11730,
            /// <summary>
            /// 其他行业
            /// </summary>
            [Description("其他行业")]
            其他行业 = 11881,
            #endregion
        }

        /// <summary>
        /// 获取企业所属行业 
        /// </summary>
        /// <param name="strId">字符类型 行业编号</param>
        /// <returns></returns>
        public static string GetCompanyIndustryNameById(string strId)
        {
            #region
            string strReturn = string.Empty;
            switch (strId)
            {
                case "10024":
                    strReturn = "农林牧副";
                    break;
                case "10026":
                    strReturn = "珠宝首饰";
                    break;
                case "10027":
                    strReturn = "美妆日化";
                    break;
                case "10030":
                    strReturn = "机械设备";
                    break;
                case "10037":
                    strReturn = "化工原料";
                    break;
                case "10042":
                    strReturn = "金属产品";
                    break;
                case "10046":
                    strReturn = "交通运输";
                    break;
                case "10053":
                    strReturn = "汽车用品";
                    break;
                case "10057":
                    strReturn = "电子元件";
                    break;
                case "10062":
                    strReturn = "家居百货";
                    break;
                case "10069":
                    strReturn = "数码产品";
                    break;
                case "10073":
                    strReturn = "旅游票务";
                    break;
                case "10078":
                    strReturn = "广告服务";
                    break;
                case "10082":
                    strReturn = "服装鞋帽";
                    break;
                case "10086":
                    strReturn = "医药医械";
                    break;
                case "10089":
                    strReturn = "建筑建材";
                    break;
                case "10109":
                    strReturn = "办公文教";
                    break;
                case "10115":
                    strReturn = "电工电气";
                    break;
                case "10171":
                    strReturn = "玩具娱乐";
                    break;
                case "10182":
                    strReturn = "包装印刷";
                    break;
                case "10183":
                    strReturn = "食品饮料";
                    break;
                case "10208":
                    strReturn = "运动健身";
                    break;
                case "10209":
                    strReturn = "工艺礼品";
                    break;
                case "10210":
                    strReturn = "家用电器";
                    break;
                case "10211":
                    strReturn = "皮具箱包";
                    break;
                case "10392":
                    strReturn = "教育培训";
                    break;
                case "10395":
                    strReturn = "五金灯具";
                    break;
                case "10396":
                    strReturn = "仪表仪器";
                    break;
                case "10397":
                    strReturn = "通信器材";
                    break;
                case "10398":
                    strReturn = "监控设备";
                    break;
                case "10399":
                    strReturn = "能源燃料";
                    break;
                case "10400":
                    strReturn = "塑料橡胶";
                    break;
                case "10401":
                    strReturn = "纺织皮革";
                    break;
                case "10402":
                    strReturn = "金融保险";
                    break;
                case "10403":
                    strReturn = "货运报关";
                    break;
                case "10404":
                    strReturn = "租凭中介";
                    break;
                case "10405":
                    strReturn = "婚丧礼仪";
                    break;
                case "10671":
                    strReturn = "生活必备";
                    break;
                case "10691":
                    strReturn = "保健康复";
                    break;
                case "10699":
                    strReturn = "汽摩附件";
                    break;
                case "10706":
                    strReturn = "防护设备";
                    break;
                case "10707":
                    strReturn = "宾馆酒店";
                    break;
                case "10708":
                    strReturn = "其他行业";
                    break;
                default:
                    strReturn = "暂无行业";
                    break;
            }
            return strReturn;
            #endregion
        }

        /// <summary>
        /// 根据公司行业名称获取行业编号
        /// </summary>
        /// <param name="IndustryName"></param>
        /// <returns></returns>
        public static int GetCompanyIndustryIdByName(string IndustryName)
        {
            #region
            try
            {
                switch (IndustryName.ToLower())
                {
                    case "agriculture": return 10024; break;
                    case "jewelry": return 10026; break;
                    case "dailychemicals": return 10027; break;
                    case "machinery": return 10030; break;
                    case "chemical": return 10037; break;
                    case "minerals": return 10042; break;
                    case "transportation": return 10046; break;
                    case "automotive": return 10053; break;
                    case "eleccomponent": return 10057; break;
                    case "homedepot": return 10062; break;
                    case "digitalproducts": return 10069; break;
                    case "travelling": return 10073; break;
                    case "advertising": return 10078; break;
                    case "wearing": return 10082; break;
                    case "medicine": return 10086; break;
                    case "jjg": return 10089; break;
                    case "officesupplies": return 10109; break;
                    case "electric": return 10115; break;
                    case "toys": return 10171; break;
                    case "packageprinting": return 10182; break;
                    case "food": return 10183; break;
                    case "sporting": return 10208; break;
                    case "crafts": return 10209; break;
                    case "homeappliances": return 10210; break;
                    case "bags": return 10211; break;
                    case "training": return 10392; break;
                    case "hardware": return 10395; break;
                    case "apparatus": return 10396; break;
                    case "communications": return 10397; break;
                    case "monitoring": return 10398; break;
                    case "energy": return 10399; break;
                    case "plas_rubber": return 10400; break;
                    case "textile": return 10401; break;
                    case "finance": return 10402; break;
                    case "freight": return 10403; break;
                    case "agentlease": return 10404; break;
                    case "ceremony": return 10405; break;
                    case "homemaking": return 10671; break;
                    case "recuperating": return 10691; break;
                    case "autoaccessories": return 10699; break;
                    case "shield": return 10706; break;
                    case "hotel": return 10707; break;
                    case "other": return 10708; break;
                    default: return 0; break;
                }
            }
            catch
            {
                return 0;
            }

            #endregion

        }

        #endregion

        #region 新闻
        /// <summary>
        /// 企业信息化新闻级别
        /// </summary>
        [Description("企业信息化新闻级别")]
        public enum NewsRank
        {
            /// <summary>
            /// 默认新闻
            /// </summary>
            [Description("默认新闻")]
            Common = 0,
            /// <summary>
            /// 推荐新闻
            /// </summary>
            [Description("推荐新闻")]
            RecommendNews = 1,

            /// <summary>
            /// 幻灯片新闻
            /// </summary>
            [Description("幻灯片新闻")]
            PowerpointNews = 2,
            /// <summary>
            /// 头条新闻
            /// </summary>
            [Description("头条新闻")]
            HeadLineNews = 3,
            /// <summary>
            /// 头推荐新闻
            /// </summary>
            [Description("头条推荐新闻")]
            HeadLineRecommendNews = 4
        }
        /// <summary>
        /// 新闻专题站点
        /// </summary>
        [Description("新闻专题所属站点")]
        public enum NewsTopicSite
        {
            /// <summary>
            /// 主站
            /// </summary>
            [Description("主站")]
            Main = 0,
            /// <summary>
            /// 新闻站
            /// </summary>
            [Description("新闻站")]
            News = 1,
        }
        #endregion

        #region  供求
        /// <summary>
        /// 供求类型
        /// </summary>
        public enum OpportunityType
        {
            [Description("供应")]
            Supply = 1,
            [Description("采购")]
            Demand = 2,
            [Description("合作")]
            Cooperate = 3
        }
        /// <summary>
        /// 商机类型
        /// </summary>
        public enum OppType
        {
            [Description("供应")]
            Supply = 1,
            [Description("求购")]
            Buy = 2,
            [Description("合作")]
            Cooperate = 3
        }
        /// <summary>
        /// 供求产品审核状态
        /// </summary>
        public enum OppAuditState
        {
            /// <summary>
            /// 待开放
            /// </summary>
            [Description("待开放")]
            Audited = 0,
            /// <summary>
            /// 已开放
            /// </summary>
            [Description("已开放")]
            Opened = 1,
            /// <summary>
            /// 已关闭
            /// </summary>
            [Description("已关闭")]
            Closed = 2
        }
        /// <summary>
        /// 供求产品推荐状态
        /// </summary>
        public enum OppProductState
        {
            /// <summary>
            /// 正常
            /// </summary>
            [Description("正常")]
            Normal = 0,
            /// <summary>
            /// 推荐
            /// </summary>
            [Description("推荐")]
            Recommend = 1,
            /// <summary>
            /// 置顶
            /// </summary>
            [Description("置顶")]
            Top = 2
        }

        /// <summary>
        /// 合作类型
        /// </summary>
        public enum CooperationType
        {
            [Description("招商加盟")]
            JiaMeng = 1,
            [Description("招商代理")]
            DaiLi = 2,
            [Description("商业合作")]
            HeZuo = 3,
            [Description("二手转让")]
            ZhuanRang = 4
        }
        #endregion

        #region 索引类型

        public enum IndexType
        {
            /// <summary>
            /// 企业
            /// </summary>
            [Description("企业")]
            Company = 1,
            /// <summary>
            /// 产品
            /// </summary>
            [Description("产品")]
            Product = 2,
            /// <summary>
            /// 采购
            /// </summary>
            [Description("采购")]
            Buy = 3,
            /// <summary>
            /// 资讯
            /// </summary>
            [Description("资讯")]
            News = 4,
            /// <summary>
            /// 展会
            /// </summary>
            [Description("展会")]
            Exhibition = 5,

            /// <summary>
            /// 合作
            /// </summary>
            [Description("合作")]
            Cooperate = 6

        }
        /// <summary>
        /// 索引操作类型
        /// </summary>
        public enum IndexOpearteType
        {
            Add = 1,
            Edit = 2,
            Del = 3

        }


        #endregion

        #region 模板
        public enum TemplateType
        {
            [Description("农林牧副")]
            Agriculture = 1,
            [Description("服装配饰")]
            Dress = 2,
            [Description("食品")]
            Food = 3,
            [Description("建筑装饰材料")]
            Build = 6,
            [Description("医药卫生")]
            Medical = 9,
            [Description("制造机械")]
            Machine = 11,
            [Description("旅游餐饮娱乐")]
            Travel = 14,
            [Description("教育培训")]
            Education = 24
        }
        [Description("模板颜色")]
        public enum TemplateColor
        {
            /// <summary>
            /// 白色模板
            /// </summary>
            [Description("白色")]
            white = 0,
            /// <summary>
            /// 黑色模板
            /// </summary>
            [Description("黑色")]
            black = 1,
            /// <summary>
            /// 蓝色模板
            /// </summary>
            [Description("蓝色")]
            blue = 2,
            /// <summary>
            /// 红色模板
            /// </summary>
            [Description("红色")]
            red = 3,
            /// <summary>
            /// 绿色模板
            /// </summary>
            [Description("绿色")]
            green = 4,
            /// <summary>
            /// 紫色模板
            /// </summary>
            [Description("紫色")]
            violet = 5,
            /// <summary>
            /// 灰色模板
            /// </summary>
            [Description("灰色")]
            gray = 6,
            /// <summary>
            /// 橙色模板
            /// </summary>
            [Description("橙色")]
            orange = 7,
            /// <summary>
            /// 其他颜色
            /// </summary>
            [Description("其他颜色")]
            others = 8
        }
        #endregion

        #region 用户发布展会/资讯审核状态
        public enum CheckMemberPublishState
        {
            /// <summary>
            /// 未审核
            /// </summary>
            [Description("未审核")]
            UnCheck = 0,
            /// <summary>
            /// 审核通过
            /// </summary>
            [Description("审核通过")]
            PassCheck = 1,
            /// <summary>
            /// 审核未通过
            /// </summary>
            [Description("审核未通过")]
            NoPassCheck = 2
        }
        #endregion

        #region 用户发布产品审核状态
        public enum CheckProductIsDelete
        {
            /// <summary>
            /// 审核通过
            /// </summary>
            [Description("审核通过")]
            PassCheck = 0,
            /// <summary>
            /// 假删除
            /// </summary>
            [Description("假删除")]
            IsDelete = 1,
            /// <summary>
            /// 关闭会员 正常的设置此假删除
            /// </summary>
            [Description("关闭会员 正常的设置此假删除")]
            IsClose = 2,
            /// <summary>
            /// 未审核
            /// </summary>
            [Description("未审核")]
            UnCheck = 3,
            /// <summary>
            /// 审核未通过
            /// </summary>
            [Description("审核不通过")]
            NoPassCheck = 4,
            /// <summary>
            /// 关闭会员时 未审核的设置为此假删
            /// </summary>
            [Description("关闭会员时 未审核的设置为此假删")]
            CloseUnCheck = 5,
            /// <summary>
            /// 关闭会员时 审核未通过的设置为此假删
            /// </summary>
            [Description("关闭会员时 审核未通过的设置为此假删")]
            CloseNoPassCheck = 6,
            /// <summary>
            /// 会员删除时  产品删除
            /// </summary>
            [Description("会员删除时 产品删除")]
            IsMemberDelete = 7,
            /// <summary>
            /// 会员删除时 
            /// </summary>
            [Description("会员删除时 未审核的设置为此假删")]
            MemberDeleteUnCheck = 8,
            /// <summary>
            /// 会员删除时 
            /// </summary>
            [Description("会员删除时 审核未通过的设置为此假删")]
            MemberNoPassCheck = 9,
            /// <summary>
            /// 有敏感关键词时 
            /// </summary>
            [Description("会员发布的产品有敏感关键词时，设置为此选项。")]
            BadWords = 10
        }
        #endregion

        #region  区域标示
        /// <summary>
        /// 区域标示
        /// </summary>
        public enum AreaFlag
        {
            [Description("主站")]
            Master = 1,
            [Description("魏都区")]
            WeiDu = 2,
            [Description("天助网")]
            TianZhu = 3,
            [Description("长垣")]
            ChangYuan = 4,
            [Description("濮阳")]
            PuYang = 5,
            [Description("许昌")]
            XuChang = 6,
            [Description("南阳")]
            NanYang = 7,
            [Description("新乡")]
            XinXiang = 8,
            [Description("洛阳")]
            LuoYang = 9,
            [Description("周口")]
            ZhouKou = 10,
            [Description("开封")]
            KaiFeng = 11,
            [Description("安阳")]
            AnYang = 12,
            [Description("商丘")]
            ShangQiu = 13,
            [Description("漯河")]
            LuoHe = 14,
        }
        #endregion
    }


}
